package com.hth.feign.consumer;

import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.netflix.hystrix.HystrixThreadPoolKey;

public class ConsumerHystrix extends HystrixCommand<PersonConsumer> {

    protected ConsumerHystrix(HystrixCommandGroupKey group, HystrixThreadPoolKey threadPool, int executionIsolationThreadTimeoutInMilliseconds) {
        super(group, threadPool, executionIsolationThreadTimeoutInMilliseconds);
    }

    @Override
    protected PersonConsumer run() throws Exception {
        /* 执行业务逻辑 */
        return null;
    }
}
